
package pencarian;
import java.util.ArrayList;

public class Input {
    //atribut
    private ArrayList<Integer> listbarang; //daftar barang yang dibutuhkan pabrik
    private int maxWeight; //batas maksimum angkutan truk
    //method
    //konstruktor
    public Input(int maxbeban, ArrayList<Integer> urutanbarang){
        listbarang = new ArrayList<Integer>(urutanbarang);
        maxWeight = maxbeban;
    }
    public ArrayList<Integer> getlistbarang(){
        return listbarang;
    }
    public int getmaxWeight(){
        return maxWeight;
    }
    public void setlistbarang(ArrayList<Integer> listinput){
        listbarang = new ArrayList<Integer>(listinput);
    }
    public void setmaxWeight(int _Y){
        maxWeight = _Y;
    }
}
